<script ng-init="initCssAndJs()">
</script>
<script ng-init="initCss('personal-home-page/css/personal_home.css')"></script>
<div class="page" id="page-pre" ng-init="showLikeList();showFollows()">
	<div class="bg_div">
		<a class="icon icon-left pull-left button-nav" href="javascript:history.back(-1)"></a>
		<div class="sex" style="display: none;">{{userInfo.userSexWord}}</div>

		<div class="user_img">
			<img ng-if="userInfo.avatarImg.imgAddress" ng-src="{{userInfo.avatarImg.imgAddress}}">
			<img ng-if="!userInfo.avatarImg.imgAddress" src="page/home-page/img/avatar.png">

		</div>
		<div class="nickname">{{words}}</div>
		<div class="sex_boy"><i class="sex_icon fa"></i></div>
		<div class="age">{{userInfo.userAge}}岁</div>
		<div class="motto">{{userDetail}}</div>
		<a href="#/follow_people" class="follow_all" ng-click="GoToFollow(userInfo.userId)">
			<div class="follow_numbers">{{userInfo.follows}}</div>
			<div class="follow">关注</div>

		</a>

		<a href="#/liker" class="liker_all" ng-click="GoToLiker(userInfo.userId)">
			<div class="liker_numbers">{{userInfo.fans}}</div>
			<div class="liker">粉丝</div>
		</a>
		<div ng-if="isFollow==false" class="edit" style="border:0.05rem solid white;background:none" ng-click="addFollow(userInfo.userId)">+关注
		</div>
		<div ng-if="isFollow==true" class="edit" style="border:none;background:blue" ng-click="reduceFollow(userInfo.userId)">已关注
		</div>
	</div>
	<div class="content">

		<div class="content_release_all">
			<ul>
				<li ng-repeat="dynamicInfo in userInfo.dynamicsList track by $index">
					<div class="content_border_setting">
						<div class="user_top">
							<div class="content_user_img">
								<img ng-if="!userInfo.avatarImg.imgAddress" src="page/home-page/img/avatar.png">
								<img ng-if="userInfo.avatarImg.imgAddress" ng-src="{{userInfo.avatarImg.imgAddress}}">
							</div>
							<div class="nickname_distance">
								<div class="user_nickname">{{words}}</div>
								<div class="distance" style="clear: both">想去&nbsp;<i class="fa fa-map-marker"></i> {{dynamicInfo.placeTo}}
								</div>
							</div>
							<div class="time_type">
								<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>
							</div>
							<!-- <i class="fa fa-angle-down" ng-click="allShow(dynamicInfo.tourdynaId)"></i>-->
						</div>
						<div style="clear: both"></div>
						<div class="release_content">
							<ul>
								<li>{{dynamicInfo.tourdynaContent}}</li>
							</ul>
						</div>
						<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
							<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
						</div>
						<div class="release_details">
							<div class="release_one">
								出发地点：{{dynamicInfo.placeFrom}}
							</div>
							<div class="release_two">
								拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
							</div>
						</div>

						<div class="release_details">
							<div class="release_one connect">
								联系方式：{{dynamicInfo.contactway}}
							</div>
							<div class="release_two">
								出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
							</div>
						</div>

						<div class="three_tip">
							<div class="user_distance">距我{{dynamicInfo.distance}}</div>
							<div class="three">
								<ul>
									<li ng-if="dynamicInfo.isLike==1" class="li_div_list" ng-click="reduceLike(dynamicInfo.tourdynaId,$index)"><i class="fa fa-thumbs-o-up" style="color: #fb8d2f;">{{dynamicInfo.tourdynaLikeNum}}</i>
									</li>
									<li ng-if="dynamicInfo.isLike!=1" class="li_div_list" ng-click="addLike(dynamicInfo.tourdynaId,$index)"><i class="fa fa-thumbs-o-up" style="color: #697480">{{dynamicInfo.tourdynaLikeNum}}</i>
									</li>
									<li class="li_div_list">
										<a href="#/review">
											<i class="fa fa-comment-o" ng-click="GoToReview(dynamicInfo.tourdynaId)">{{dynamicInfo.tourdynaCommentNum}}</i>
										</a>
									</li>
									<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart-o collection" style="color:red;">收藏</i></li>
									<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index)"><i class="fa fa-heart-o collection">收藏</i></li>
								</ul>
							</div>
						</div>
						<div style="clear: both;"></div>
					</div>
				</li>
			</ul>
		</div>
		<!--内容区-->

	</div>
	<div class="all">
		<div class="alert_top" ng-click="allHide()"></div>
		<div class="alert_all">
			<div class="list_div">
				<div class="list_bor delete" ng-click="addCollection()">
					<div class="list">
						<i class="fa fa-star-o fa-3x"></i>
					</div>
					<span class="list_con list_con1">收藏</span>
				</div>
				<!-- <div class="list_bor collection" ng-click="">
                     <div class="list">
                         <i class="fa fa-star-o fa-3x"></i>
                     </div>
                     <span class="list_con list_con2">收藏</span>
                 </div>-->
			</div>
		</div>
	</div>
</div>
<div ng-init="suiMobileInit()"></div>